package com.gree.common.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

@Data
@Table("SYS_API_ROLE")
@ApiModel(description = "系统接口管理信息")
public class SysApiRoleVo  implements Serializable
{
    private static final long serialVersionUID = 1L;

    @Id
    @ApiModelProperty("系统接口ID")
    Long id;

    @Column
    @ApiModelProperty("接口绑定的角色ID")
    String roid;

    @NotBlank(message = "接口地址不能为空")
    @Column
    @ApiModelProperty("接口URL")
    String apiurl;

    @Column
    @ApiModelProperty("接口描述")
    String dsca;

    @Column
    @ApiModelProperty("接口Method")
    String method;

    @Column
    @ApiModelProperty("接口类型")
    int type;

    @Column
    @ApiModelProperty("接口固定token")
    String token;

    @Column
    @ApiModelProperty("创建时间")
    Date createtime;

    String[] users;
}
